set -g default-terminal "screen-256color" # colors!
set-option -sa terminal-overrides ",xterm*:Tc"

set -sg escape-time 0

set -g display-panes-time 4000
set -g pane-base-index 1
set -g base-index 1
setw -g pane-base-index 1

bind-key -n M-0 select-window -t 0
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9

# smart pane switching with awareness of vim splits
bind -n M-h select-pane -L
bind -n M-j select-pane -D 
bind -n M-k select-pane -U
bind -n M-l select-pane -R

setw -g window-status-current-style fg=black,bg=yellow

set-option -g status-position top

set -g mouse on

set-window-option -g mode-keys vi

bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

set-option -g status-interval 0
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
